<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>美嘉饲料</title>
<link href="<%=basePath%>skin/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath%>skin/css/android_app.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/common.js"></script>
<script type="text/javascript" src="<%=basePath%>temp/js/mstr.js"></script>
<script type="text/javascript" src="<%=basePath%>temp/js/unjcV2.js"></script>
<script type="text/javascript" src="<%=basePath%>temp/js/mstr(1).js"></script>
<script type="text/javascript" src="<%=basePath%>temp/js/jquery.statData.min.js"></script>
<script type="text/javascript" src="<%=basePath%>temp/js/xmst.js"></script>
<script type="text/javascript" src="<%=basePath%>temp/js/banner.js"></script>
<script type="text/javascript" src="<%=basePath%>temp/js/lanrenzhijia.js"></script>
<link rel="stylesheet" type="text/css" href="<%=basePath%>temp/css/base.min.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>temp/css/index.min.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>temp/css/banner.css"/>
<link rel="stylesheet" type="text/css" href="<%=basePath%>temp/css/biaoden.css">
<link rel="stylesheet" type="text/css" href="<%=basePath%>temp/css/lanrenzhijia.css"/>
</head>

<body>
<c:import url="/layouts/top.jsp" />
<div class="site-header container" >
<c:import url="/layouts/head.jsp" />
<div style="clear:both;"></div>
<style type="text/css">
* {
	margin: 0;
	padding: 0;
}

#menu {
	top: 0px;
	margin: 100px auto;
	width: 100%;
	height: 38px;
	background-color: #000000;
}

#copyright {
	margin: 100px auto;
	width: 80%;
	font: 12px 'Trebuchet MS';
	color: #bbb;
	text-indent: 20px;
	padding: 40px 0 0 0;
}

#copyright a {
	color: #bbb;
}

#copyright a:hover {
	color: #fff;
}
</style>
		<div id="menu">
			<ul class="menu">
				<li style="margin:0px 30px;"><a href="index.shtml"><span>首页</span></a></li>
				<li><a href="<%=basePath%>shop/product/list.shtml" class="parent"><span>产品</span></a>
					<div>
						<ul>
				<c:forEach items="${productCategoryTree }" var="productCategory">
					<c:if test="${productCategory.grade == 0 }">
						<li>
							<a href="<%=basePath%>shop/product/list.shtml?productCategoryId=${productCategory.id }"><span>${productCategory.name }</span></a>
							<div>
							<ul>
							<c:set var="gradeone" value="0" />
							<c:forEach items="${productCategoryTree }" var="productCategoryGradeone">
								<c:if test="${productCategoryGradeone.grade == 1 && productCategoryGradeone.parent.id == productCategory.id }">
									<li><a href="<%=basePath%>shop/product/list.shtml?productCategoryId=${productCategoryGradeone.id }"><span>${productCategoryGradeone.name }</span></a>
									<c:set var="gradeone" value="${gradeone+1 }" />
									<div>
									<ul>
									<c:set var="gradetwo" value="0" />
									<c:forEach items="${productCategoryTree }" var="productCategoryGradetwo">
										<c:if test="${productCategoryGradetwo.grade == 2 && productCategoryGradetwo.parent.id == productCategoryGradeone.id }">
											<li><a href="<%=basePath%>shop/product/list.shtml?productCategoryId=${productCategoryGradetwo.id }"><span>${productCategoryGradetwo.name }</span></a>
											<c:set var="gradetwo" value="${gradetwo+1 }" />
										</c:if>
									</c:forEach>
									<c:if test="${gradetwo == 0 }">
										<li id="${productCategoryGradeone.id }"></li>
										<script type="text/javascript">
											$(document).ready(function(){
												$("#${productCategoryGradeone.id }").parent().parent().remove();
											});
										</script> 
									</c:if>
									</ul>
									</div>
								</c:if>
							</c:forEach>
							<c:if test="${gradeone == 0 }">
								<li id="${productCategory.id }"></li>
								<script type="text/javascript">
									$(document).ready(function(){
										$("#${productCategory.id }").parent().parent().remove();
									});
								</script> 
							</c:if>
							</ul>
							</div>
						</li>
					</c:if>
				</c:forEach>
						</ul>
					</div></li>
				<li style="margin:0px 30px;"><a href="jishu.shtml"><span>技术</span></a></li>
				<li><a href="fuwu.shtml"><span>服务</span></a></li>
				<li style="margin:0px 30px;"><a href="gongsi.htm"><span>公司</span></a></li>
			</ul>
		</div>

<div  class="pad-container">
        <!--扫码开始-->
        <div class="con">
          <div class="android">
           <div class="er"></div>
           <div class="er_r">
              <p>Android客户端</p>
              <div class="er_btn"><a href="<%=basePath%>app/mjfeed.apk">Android客户端下载</a></div>
           </div>
          </div>
          <div class="app">
           <div class="er"></div>
           <div class="er_r">
              <p>IOS客户端</p>
              <div class="er_btn"><a href="javascript:alert('敬请等待!');">IOS客户端下载</a></div>
           </div>
          </div>

        </div>
    </div>
 </div>
 <c:import url="/layouts/foot.jsp" />
</body>
</html>
<a href="http://apycom.com/"></a>
